package io.renren.modules.generator.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-12-11 09:41:01
 */
@TableName("orders")
@Data
public class OrdersEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer id;
	/**
	 * 订单编号
	 */
	private String orderNumber;
	/**
	 * 
	 */
	private String orderNo;
	/**
	 * 提货日期
	 */
	private String fromDate;
	/**
	 * 到货日期
	 */
	private String toDate;
	/**
	 * 业务类型
	 */
	private Integer businessTypeDictionaryId;
	@TableField(exist = false)
	private String  businessType;

	/**
	 * 运输类型
	 */
	private Integer transportationTypeDictionaryId;
	@TableField(exist = false)
	private String  transportationType;
	/**
	 * 客户
	 */
	private Integer customerId;
	@TableField(exist = false)
	private String customerCode;
	@TableField(exist = false)
	private String customerName;




	@TableField(exist = false)
	private AddressEntity fromAddress;
	@TableField(exist = false)
	private AddressEntity toAddress;









	/**
	 * 提货地址
	 */
	private String fromAddressId;
	/**
	 * 到货地址
	 */
	private String toAddressId;
	/**
	 * 车型
	 */
	private Integer vehicleId;

	/**
	 * 车型
	 */
	@TableField(exist = false)
	private String vehicleCode;

	/**
	 * 需要预约
	 */
	private String appointFlag;
	/**
	 * 
	 */
	private String slfPickupFlag;
	/**
	 * 客户自送
	 */
	private String slfDeliverFlag;
	/**
	 * 需求卸货
	 */
	private String unloadFlag;
	/**
	 * 板数
	 */
	@TableField(exist = false)
	private Double platesNumberTotal;
	/**
	 * 体积
	 */
	@TableField(exist = false)
	private Double volumeTotal;
	/**
	 * 重量
	 */
	@TableField(exist = false)
	private Double weightTotal;
	/**
	 * 状态
	 */
	private String status;


	/**
	 * 运单号
	 */
	private String transportationOrderNo;
	/**
	 * 订单组
	 */
	private Integer orderGroupId;
	@TableField(exist = false)
	private String orderGroupNumber;

	/**
	 * 更新时间
	 */
	private String lastModifiedTime;
	/**
	 * 
	 */
	private String createdBy;
	/**
	 * 下单时间
	 */
	private String createdTime;
	/**
	 * 预留字段1
	 */
	private String extendFirst;
	/**
	 * 预留字段2
	 */
	private String extendSecond;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 送货地址代码
	 */
	private String fromAddressCode;
	private String fromAddressName;

	private Integer fromDtAreaId;

	private String fromOmsMnemonicCode;
	/**
	 * 提货省
	 */
	private String fromProvince;
	/**
	 * 提货市
	 */
	private String fromCity;
	/**
	 * 提货区
	 */
	private String fromArea;

	private String fromProvinceCode;
	/**
	 * 提货市
	 */
	private String fromCityCode;
	/**
	 * 提货区
	 */
	private String fromAreaCode;

	/**
	 * 提货详细地址
	 */
	private String fromDetailedAddress;
	/**
	 * 提货联系人
	 */
	private String fromLinkMan;
	/**
	 * 提货联系人手机
	 */
	private String fromLinkManPhone;
	/**
	 * 提货联系人电话
	 */
	private String fromLinkManTelement;
	/**
	 * 提货联系人邮箱
	 */
	private String fromLinkManEmail;

	/**
	 * 到货地址代码
	 */
	private String toAddressCode;
	private String toAddressName;




	private Integer toDtAreaId;

	private String toOmsMnemonicCode;
	/**
	 * 到货省
	 */
	private String toProvince;
	/**
	 * 到货市
	 */
	private String toCity;
	/**
	 * 到货区
	 */
	private String toArea;


	/**
	 * 到货省
	 */
	private String toProvinceCode;
	/**
	 * 到货市
	 */
	private String toCityCode;
	/**
	 * 到货区
	 */
	private String toAreaCode;


	/**
	 * 到货详细地址
	 */
	private String toDetailedAddress;
	/**
	 * 到货联系人
	 */
	private String toLinkMan;
	/**
	 * 到货联系人手机
	 */
	private String toLinkManPhone;
	/**
	 * 到货联系人电话
	 */
	private String toLinkManTelement;
	/**
	 * 到货联系人邮箱
	 */
	private String toLinkManEmail;

	@TableField(exist = false)
	private Double actualReceiveQuantityTotal;
	@TableField(exist = false)
	private Double actualSendQuantityTotal;
	@TableField(exist = false)
	private Double quantityTotal;
	@TableField(exist = false)
	private Double quantityDifferenceTotal;



	@TableField(exist = false)
	private String productNumber;
	@TableField(exist = false)
	private String productCnName;
	@TableField(exist = false)
	private Double price;
	@TableField(exist = false)
	private String productValue;
	@TableField(exist = false)
	private Double actualReceiveQuantity;
	@TableField(exist = false)
	private Double actualSendQuantity;
	@TableField(exist = false)
	private Double quantity;
	@TableField(exist = false)
	private Double quantityDifference;
	@TableField(exist = false)
	private String orderDetailId;
	@TableField(exist = false)
	private String orderDetailRemark;
	@TableField(exist = false)
	private Double orderDetailVolume;
	@TableField(exist = false)
	private Double orderDetailWeight;
	@TableField(exist = false)
	private Double orderDetailPlatesNumber;

	@TableField(exist = false)
	private String orderDetailLastModifiedTime;
	@TableField(exist = false)
	private String orderDetailLastModifiedBy;

	@TableField(exist = false)
	private String productTemperatureRange;
	@TableField(exist = false)
	private String productTemperatureRangeCode;


	@TableField(exist = false)
	private List<OrderDetailEntity> orderDetails = new ArrayList<>();












	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：订单编号
	 */
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	/**
	 * 获取：订单编号
	 */
	public String getOrderNumber() {
		return orderNumber;
	}
	/**
	 * 设置：
	 */
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	/**
	 * 获取：
	 */
	public String getOrderNo() {
		return orderNo;
	}
	/**
	 * 设置：提货日期
	 */
	public void setFromDate(String fromDate) {
		this.fromDate = fromDate;
	}
	/**
	 * 获取：提货日期
	 */
	public String getFromDate() {
		return fromDate;
	}
	/**
	 * 设置：到货日期
	 */
	public void setToDate(String toDate) {
		this.toDate = toDate;
	}
	/**
	 * 获取：到货日期
	 */
	public String getToDate() {
		return toDate;
	}
	/**
	 * 设置：业务类型
	 */
	public void setBusinessTypeDictionaryId(Integer businessTypeDictionaryId) {
		this.businessTypeDictionaryId = businessTypeDictionaryId;
	}
	/**
	 * 获取：业务类型
	 */
	public Integer getBusinessTypeDictionaryId() {
		return businessTypeDictionaryId;
	}
	/**
	 * 设置：运输类型
	 */
	public void setTransportationTypeDictionaryId(Integer transportationTypeDictionaryId) {
		this.transportationTypeDictionaryId = transportationTypeDictionaryId;
	}
	/**
	 * 获取：运输类型
	 */
	public Integer getTransportationTypeDictionaryId() {
		return transportationTypeDictionaryId;
	}
	/**
	 * 设置：客户
	 */
	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}
	/**
	 * 获取：客户
	 */
	public Integer getCustomerId() {
		return customerId;
	}
	/**
	 * 设置：提货地址
	 */
	public void setFromAddressId(String fromAddressId) {
		this.fromAddressId = fromAddressId;
	}
	/**
	 * 获取：提货地址
	 */
	public String getFromAddressId() {
		return fromAddressId;
	}
	/**
	 * 设置：到货地址
	 */
	public void setToAddressId(String toAddressId) {
		this.toAddressId = toAddressId;
	}
	/**
	 * 获取：到货地址
	 */
	public String getToAddressId() {
		return toAddressId;
	}
	/**
	 * 设置：车型
	 */
	public void setVehicleId(Integer vehicleId) {
		this.vehicleId = vehicleId;
	}
	/**
	 * 获取：车型
	 */
	public Integer getVehicleId() {
		return vehicleId;
	}
	/**
	 * 设置：需要预约
	 */
	public void setAppointFlag(String appointFlag) {
		this.appointFlag = appointFlag;
	}
	/**
	 * 获取：需要预约
	 */
	public String getAppointFlag() {
		return appointFlag;
	}
	/**
	 * 设置：
	 */
	public void setSlfPickupFlag(String slfPickupFlag) {
		this.slfPickupFlag = slfPickupFlag;
	}
	/**
	 * 获取：
	 */
	public String getSlfPickupFlag() {
		return slfPickupFlag;
	}
	/**
	 * 设置：客户自送
	 */
	public void setSlfDeliverFlag(String slfDeliverFlag) {
		this.slfDeliverFlag = slfDeliverFlag;
	}
	/**
	 * 获取：客户自送
	 */
	public String getSlfDeliverFlag() {
		return slfDeliverFlag;
	}
	/**
	 * 设置：需求卸货
	 */
	public void setUnloadFlag(String unloadFlag) {
		this.unloadFlag = unloadFlag;
	}
	/**
	 * 获取：需求卸货
	 */
	public String getUnloadFlag() {
		return unloadFlag;
	}
	/**
	 * 设置：板数
	 */
	public void setPlatesNumberTotal(Double platesNumberTotal) {
		this.platesNumberTotal = platesNumberTotal;
	}
	/**
	 * 获取：板数
	 */
	public Double getPlatesNumberTotal() {
		return platesNumberTotal;
	}
	/**
	 * 设置：体积
	 */
	public void setVolumeTotal(Double volumeTotal) {
		this.volumeTotal = volumeTotal;
	}
	/**
	 * 获取：体积
	 */
	public Double getVolumeTotal() {
		return volumeTotal;
	}
	/**
	 * 设置：重量
	 */
	public void setWeightTotal(Double weightTotal) {
		this.weightTotal = weightTotal;
	}
	/**
	 * 获取：重量
	 */
	public Double getWeightTotal() {
		return weightTotal;
	}

	/**
	 * 设置：运单号
	 */
	public void setTransportationOrderNo(String transportationOrderNo) {
		this.transportationOrderNo = transportationOrderNo;
	}
	/**
	 * 获取：运单号
	 */
	public String getTransportationOrderNo() {
		return transportationOrderNo;
	}
	/**
	 * 设置：订单组
	 */
	public void setOrderGroupId(Integer orderGroupId) {
		this.orderGroupId = orderGroupId;
	}
	/**
	 * 获取：订单组
	 */
	public Integer getOrderGroupId() {
		return orderGroupId;
	}
	/**
	 * 设置：更新时间
	 */
	public void setLastModifiedTime(String lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}
	/**
	 * 获取：更新时间
	 */
	public String getLastModifiedTime() {
		return lastModifiedTime;
	}
	/**
	 * 设置：
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}
	/**
	 * 获取：
	 */
	public String getCreatedBy() {
		return createdBy;
	}
	/**
	 * 设置：下单时间
	 */
	public void setCreatedTime(String createdTime) {
		this.createdTime = createdTime;
	}
	/**
	 * 获取：下单时间
	 */
	public String getCreatedTime() {
		return createdTime;
	}
	/**
	 * 设置：预留字段1
	 */
	public void setExtendFirst(String extendFirst) {
		this.extendFirst = extendFirst;
	}
	/**
	 * 获取：预留字段1
	 */
	public String getExtendFirst() {
		return extendFirst;
	}
	/**
	 * 设置：预留字段2
	 */
	public void setExtendSecond(String extendSecond) {
		this.extendSecond = extendSecond;
	}
	/**
	 * 获取：预留字段2
	 */
	public String getExtendSecond() {
		return extendSecond;
	}
	/**
	 * 设置：备注
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * 获取：备注
	 */
	public String getRemark() {
		return remark;
	}
	/**
	 * 设置：送货地址代码
	 */
	public void setFromAddressCode(String fromAddressCode) {
		this.fromAddressCode = fromAddressCode;
	}
	/**
	 * 获取：送货地址代码
	 */
	public String getFromAddressCode() {
		return fromAddressCode;
	}
	/**
	 * 设置：提货省
	 */
	public void setFromProvince(String fromProvince) {
		this.fromProvince = fromProvince;
	}
	/**
	 * 获取：提货省
	 */
	public String getFromProvince() {
		return fromProvince;
	}
	/**
	 * 设置：提货市
	 */
	public void setFromCity(String fromCity) {
		this.fromCity = fromCity;
	}
	/**
	 * 获取：提货市
	 */
	public String getFromCity() {
		return fromCity;
	}
	/**
	 * 设置：提货区
	 */
	public void setFromArea(String fromArea) {
		this.fromArea = fromArea;
	}
	/**
	 * 获取：提货区
	 */
	public String getFromArea() {
		return fromArea;
	}
	/**
	 * 设置：提货详细地址
	 */
	public void setFromDetailedAddress(String fromDetailedAddress) {
		this.fromDetailedAddress = fromDetailedAddress;
	}
	/**
	 * 获取：提货详细地址
	 */
	public String getFromDetailedAddress() {
		return fromDetailedAddress;
	}
	/**
	 * 设置：提货联系人
	 */
	public void setFromLinkMan(String fromLinkMan) {
		this.fromLinkMan = fromLinkMan;
	}
	/**
	 * 获取：提货联系人
	 */
	public String getFromLinkMan() {
		return fromLinkMan;
	}
	/**
	 * 设置：提货联系人手机
	 */
	public void setFromLinkManPhone(String fromLinkManPhone) {
		this.fromLinkManPhone = fromLinkManPhone;
	}
	/**
	 * 获取：提货联系人手机
	 */
	public String getFromLinkManPhone() {
		return fromLinkManPhone;
	}
	/**
	 * 设置：提货联系人电话
	 */
	public void setFromLinkManTelement(String fromLinkManTelement) {
		this.fromLinkManTelement = fromLinkManTelement;
	}
	/**
	 * 获取：提货联系人电话
	 */
	public String getFromLinkManTelement() {
		return fromLinkManTelement;
	}
	/**
	 * 设置：提货联系人邮箱
	 */
	public void setFromLinkManEmail(String fromLinkManEmail) {
		this.fromLinkManEmail = fromLinkManEmail;
	}
	/**
	 * 获取：提货联系人邮箱
	 */
	public String getFromLinkManEmail() {
		return fromLinkManEmail;
	}
	/**
	 * 设置：到货地址代码
	 */
	public void setToAddressCode(String toAddressCode) {
		this.toAddressCode = toAddressCode;
	}
	/**
	 * 获取：到货地址代码
	 */
	public String getToAddressCode() {
		return toAddressCode;
	}
	/**
	 * 设置：到货省
	 */
	public void setToProvince(String toProvince) {
		this.toProvince = toProvince;
	}
	/**
	 * 获取：到货省
	 */
	public String getToProvince() {
		return toProvince;
	}
	/**
	 * 设置：到货市
	 */
	public void setToCity(String toCity) {
		this.toCity = toCity;
	}
	/**
	 * 获取：到货市
	 */
	public String getToCity() {
		return toCity;
	}
	/**
	 * 设置：到货区
	 */
	public void setToArea(String toArea) {
		this.toArea = toArea;
	}
	/**
	 * 获取：到货区
	 */
	public String getToArea() {
		return toArea;
	}
	/**
	 * 设置：到货详细地址
	 */
	public void setToDetailedAddress(String toDetailedAddress) {
		this.toDetailedAddress = toDetailedAddress;
	}
	/**
	 * 获取：到货详细地址
	 */
	public String getToDetailedAddress() {
		return toDetailedAddress;
	}
	/**
	 * 设置：到货联系人
	 */
	public void setToLinkMan(String toLinkMan) {
		this.toLinkMan = toLinkMan;
	}
	/**
	 * 获取：到货联系人
	 */
	public String getToLinkMan() {
		return toLinkMan;
	}
	/**
	 * 设置：到货联系人手机
	 */
	public void setToLinkManPhone(String toLinkManPhone) {
		this.toLinkManPhone = toLinkManPhone;
	}
	/**
	 * 获取：到货联系人手机
	 */
	public String getToLinkManPhone() {
		return toLinkManPhone;
	}
	/**
	 * 设置：到货联系人电话
	 */
	public void setToLinkManTelement(String toLinkManTelement) {
		this.toLinkManTelement = toLinkManTelement;
	}
	/**
	 * 获取：到货联系人电话
	 */
	public String getToLinkManTelement() {
		return toLinkManTelement;
	}
	/**
	 * 设置：到货联系人邮箱
	 */
	public void setToLinkManEmail(String toLinkManEmail) {
		this.toLinkManEmail = toLinkManEmail;
	}
	/**
	 * 获取：到货联系人邮箱
	 */
	public String getToLinkManEmail() {
		return toLinkManEmail;
	}
}
